<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .demo{
            width: 200px;
            height: 200px;
            background-color: red;
        }
    </style>
    <link rel="stylesheet" href="./animate.min.css">
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">
        <button @click="toggle">切换</button>
        <transition name="fade" enter-active-class="animated bounceIn">
            <div class="demo" v-show="status"></div>
        </transition>
    </div>
    <script>
        var app = new Vue({
            el:'#app',
            data:{
                status:true
            },
            methods:{
                toggle(){
                    this.status = !this.status
                }
            }
        })
    </script>
</body>
</html>